<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\modules\Admin\models\Topic */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="topic-form">

	<?php $form = ActiveForm::begin([
			'options' => [],
			'layout' => 'horizontal',
			'fieldConfig' => [
			'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
			'horizontalCssClasses' => [
			'label' => 'col-sm-2',
			'wrapper' => 'col-sm-6',
			],
		],
	]); ?>


    <?= $form->field($model, 'topic_type')->textInput(['maxlength' => true]) ?>

    <!-- ?= $form->field($model, 'schoolid')->textInput() ? -->

    <?= $form->field($model, 'comment_id')->textInput() ?>

    <?= $form->field($model, 'topic_com')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'topic_likes')->textInput() ?>

    <?= $form->field($model, 'topic_name')->textInput(['maxlength' => true]) ?>

    <!-- ?= $form->field($model, 'create_time')->textInput() ? -->
    <!-- ?= $form->field($model, 'updated_at')->textInput() ? -->

    <div class="form-group text-center">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
